package cn.openbiotoken;

public interface GenderClassification {

    static Gender legalizeGender(final int gender) {
        for(Gender g: Gender.values()) {
            if (g.getCode()==gender) {
                return g;
            }
        }
        return Gender.NOT_SPECIFIED;
    }

    Gender getGender();

    byte getConfidencePercentage();
}
